https://bugzilla.gnome.org/show_bug.cgi?id=675104
};
}
+function _makeLoggingFunc(func) {
+ return function() {
+ return func([].join.call(arguments, ', '));
+ };
+}
+
function init() {
// Add some bindings to the global JS namespace; (gjs keeps the web
// browser convention of having that namespace be called 'window'.)
window.global = Shell.Global.get();
+ window.log = _makeLoggingFunc(window.log);
+
window._ = Gettext.gettext;
window.C_ = Gettext.pgettext;
window.ngettext = Gettext.ngettext;